package com.ruoyi.project.dict.res.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 学习资料资源对象 material_res
 *
 * @author shixiangwen
 * @date 2020-05-08
 */
public class MaterialRes extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 学习资料ID
     */
    @Excel(name = "学习资料ID")
    private Long materialId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long seq;

    /**
     * 资源类型
     */
    @Excel(name = "资源类型")
    private Integer resType;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 资源下载地址
     */
    @Excel(name = "资源下载地址")
    private String url;

    /**
     * 资源大小
     */
    @Excel(name = "资源大小")
    private Long size;

    /**
     * 上传时间
     */
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 上传用户
     */
    @Excel(name = "上传用户")
    private Long kkid;

    private String sizeFormat;

    private String title;

    private Long spiderId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getSpiderId() {
        return spiderId;
    }

    public void setSpiderId(Long spiderId) {
        this.spiderId = spiderId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public Long getMaterialId() {
        return materialId;
    }

    public void setSeq(Long seq) {
        this.seq = seq;
    }

    public Long getSeq() {
        return seq;
    }

    public void setResType(Integer resType) {
        this.resType = resType;
    }

    public Integer getResType() {
        return resType;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getSize() {
        return size;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setKkid(Long kkid) {
        this.kkid = kkid;
    }

    public Long getKkid() {
        return kkid;
    }

    public String getSizeFormat() {
        return sizeFormat;
    }

    public void setSizeFormat(String sizeFormat) {
        this.sizeFormat = sizeFormat;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("materialId", getMaterialId()).append("seq", getSeq()).append("resType", getResType())
                .append("content", getContent()).append("url", getUrl()).append("size", getSize()).append("createdTime", getCreatedTime()).append("kkid", getKkid()).toString();
    }
}
